package org.huang.sample12.service;

import org.huang.sample12.model.Person;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @描述：
 * @作者: Mr.huang
 * @创建时间: 2017/8/31 16:20
 * @版本: 1.0
 */
@Validated
public interface PersonService {

    public void addPerson(@NotNull(message = "Person对象不能为空") @Valid Person person);
}
